package com.etcxy.autowire;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class App1 {
	public static void main(String[] args) {
		ApplicationContext ac = new ClassPathXmlApplicationContext("com/etcxy/autowire/beans.xml");
		Master ma = (Master) ac.getBean("master");

		System.out.println(ma.getName() + "  " + ma.getDog().getName());
	}
}
